#ifndef MATERIALMANAGER_H
#define MATERIALMANAGER_H

using namespace std;

namespace mgfx
{
	class Material;

	class MaterialManager
	{
	public:
		Material * createMaterial(const string & key);

		Material * getMaterial(const string & key);
		Material * getDefaultMaterial() { return mDefaultMaterial; }

		void init();
		void deinit();

	private:
		typedef map<string, Material*> MaterialMap;
		MaterialMap mMaterials;

		Material * mDefaultMaterial;
	};
}

#endif
